adapt unittests