adding test to make sure controller method was called