Fixed a bug in testing for old style API calls