Correct test library; correct external functions tests.