Added tests for percentile controller service, and fixed bug that this turned up
Bugfix