improved test
added profile to app table, added tests to app model
added app controller and tests