add recordarray unit test