Use Hash#to_json in test file to improve readability