If you have the test data including the targets, you could reuse the validation approach and just swap the test data for the validation set.
Since the validation code should neither update the model not use any data augmentation techniques, it should be OK to use the same workflow for the test case.