Fixed call to numpy.allclose
Finished implementing tests. Still need to run.