fix rate test script to use new versio of lib functions