added spawn and sync to the interpreter...
added test cases to tests directory