Fix tests for find_by! method.