Compleated tests, Hmat and Hvec passes all tests. Refraction still needed.