fixed argument checking for tests