rationalise post and put calls

include logout step in tests