Add unit tests for commit operation in edge cases

Add tests for edge cases mentioned by @lodejard in #96 
Won't pass PoliCheck. Call it `dict` :trollface: