Tests for go client

Found a minor bug in the regular expression and added tests for the client.