Hide exposed functions; refactor tests.