added unit tests for lib/utils module