refactoring controller tests and updating maven pom.xml file for better mockito dependency