prepared tests
added more asserts
written 2pc impl; fixed tests