Added common.go test
Code formatted