declaring functions in viewEngine test