better array encoding tests