Validation of frequency and mode extraction calculations from time-domain simulations of accelerator cavities — arXiv2