added model and view tests