add method test to test_controller.rb