Updated test cases to handle hashtable arrays
FIX issue #6 - variable scope now works as expected