added instruction register + test cases