Two York men accused of setting fire to a man after spraying him with flammable liquid claim they were not at the scene of the incident, a court heard.