control against race condition
exposed method clear
Merge pull request #4 from KrakeIO/unit_test

Unit test