Add test for takeInstructions