improved arrays lib tests