RD: Tests

- Move setup into a test helper
- Create a Rake task to run functional tests