Added test for function_score