Added test for get_f