fix static method access
added tests (copy of HashMap tests)