correct test for availlability of functions