View unit-test fix