Added tests to base_function