Fixed fatal errors in testSearchWithVersionOption().