fix reservation tab, implement some tests