Added some more utility methods along with unit tests.
hng