Added $test_file optional parameter to the constructor.