Add unit tests for the reports controller