added some more tests, export main app class for tests
removed db test requiring jquery, please fix