adding test to controller