server tests mostly working