Added checkAcess middleware tests.
Fixed bug error handler on ajax request.
Added tests for errorHandler.
Refactored customer to be testable.
Added tests for CustomerController and HomeController.