Now server is able to recover from shadow version mismatch
Added some tests and documentation