Added function test, changed view name to @@rest