added SRP tests

also slightly refactored startLogin and finishLogin