Fix strict notice for undefined property during tests.