add instruction test, correct write metadata mask & rec parse for action