Added a functional test for view precompilation

@yishaigalatzer 
The mime type check doesn't add much to this test.