Hanlin

Complete unit tests.