Update invocation of view's add method in tests