Add factory_girl and database_cleaner gems for testing and configure
Add factory for protect and refactor tests
Use UTC dates instead of stings for aggregations and add tests