added test for selector