Added unit tests for issue #9 - crash with open array