Test server error while registering lock
Test revoked while releasing
Handle undefined return value

If we fall into the case when the response generator fails, test the return value before embedding it into an error message incase the value is undef.
Test getting an http timeout when in the activate loop
change placement of test function call
Test receving a 500 error while releasing lock