Signed by: Maxwell Almeida <llewxam100@hotmail.com. Refactoring reports model and reports controller. Fixing some tests.