Create test cases for all controllers #28
Added test for ReportController, but doesn't extend BaseControllerTest because it has different sets of methods.
Fix some bugs for purchases blade.
Modified ReportController to fulfil coding standards.