Added constructor to be used for test purposes
Added tests for view reports