Split main and test files.
Added commented out stubs for App Engine tests.