Simpler app detector
Add test/controllers file to view tests

Closes #321.