Prepares test