updated tests and go fmt