fix tests
better conversion of arrays