Use correct redirect code. Fixes #7
Mock an expired response rather than actually waiting
Complete tests. Fixes #3 and #6