Tests and code for pitchClass class.