added test bat for easier testing
added tests for promising in step 2
refectored code to use the log instead of paxos