Added a functional test for view precompilation

@yishaigalatzer 
This is a really cool trick, but needs a comment to explain what is going on