v0.7.7 - add more unit tests and fix bugs