Added spec test for response. Tests all state transitions and failures.