Updated many unit tests and added many methods regarding primitive
arrays