unit tests, misc