more unit tests, functionality migrated from pyWWA