added the Register and FlagRegister classes and their subsequent tests