Added a functional test for view precompilation

@yishaigalatzer 
Precompilation is activated on the sample also, so this causes an error