Added tests for HashMap class