Adding tests for the month runs data endpoint

- Refactored the model a little
- Added initial tests for the endpoint