BLD Extract code to test it