Add tests for generate_singletons, generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. (test_calculate_quantiles): Fix some tests to catch the new ValueError that is raised.