unit tests are working the first time, fixes #1