refactor test structure, create an app_helper for tests, rack/test the application
merge tests branch