primitive interation testing in go