Add tests for S3 upload (using mocks).
Refactor RackApp specs.