added test for function that returns float.