add test for availability creation