fixed hasClassName, updated test page