add tests for market class's find_by and find_all_by methods