Bug testing objects where property doesn't exist