fix bug where fn is applied to arg and test stops running