Added a second parameter to the test function.