adjusting availability input and getting some tests to work