Fixed NPE on property in test