Add tests for dashboard rake tasks