Now works fine with the internal test function