more portable unit tests