Extract the unit test to a separate libraries.