MEDINA, N.D. — An inventor working out of Medina has applied for a patent and successfully test-fired firefighting equipment he built in response to two catastrophic oil train derailments last year.