added unit tests for go