add test code for execute method