Adapts unit test