adding tests for the main controller