availability rates unit tests mostly working, mostly done