test appointment not in the past
fix test