added some test cases and fixed a bug in contextIndex
test-suite for interpreter
bugfix