Code cleanup

- Adds empty application.js to satisfy file not found error in Travis
CI.
- Removes unused method in test session helpers and performs minor code
refactoring.