Fixed unit testing & added exception testing
Matrix unit tests & final array cloning fix