extended M.View and added basic tests