fixed posting crash and added functionality test to catch it