adapted unit test to new view api