added test for viewsDir property in View constructor