Added a functional test for view precompilation

@yishaigalatzer 
It's not something that is going to change a lot, the duplication is acceptable