Add tests for empty, text and array value elements