add class method "has" and the test with bugs