dmraid: rewrite tests to use array