Add tests for invalid arrays and empty values