Added a functional test for view precompilation

@yishaigalatzer 
Seems unrelated