Changed selector test to typeof object.