tests for all methods of controller add