add test code for executing instruction method