added more tests
test on array and exception