Another sdb array fix and more tests