change method render_to_response
add unittest case for model