better test function, supplies both tests now