fixed unit tests and built dist