added tests for errors: 400 and 404
removed some 'puts' in tests that were used for debuggin purposes. Changed Model.find_by method for Model.where
fixed errors in the controller specs for the edit and show actions