Move the user-facing test library to test-lib-functions.sh