Created unit tests for HashMap