Added a functional test for view precompilation

@yishaigalatzer