Add tests for find_by functions.