Linearity and Group Homomorphism Testing / Testing Hadamard Codes