Updated instruction test routine