linked list test code to execute in the vm