Added ApiControllerTest and refactored spring configuration to separate controller setup with view management