Add test for context
Refactor tests
Fix bug content-type in app.'s; add tests for app