convert to dub package, clean up unit tests