fix has-class? to handle nil args
add has-class? unit test