fixed use of internal function in test