bug #21 fixed
test cases slightly updated (array from previous tests are unset)