move test for whether to show appointment to model