Added unit tests for synchronized commands kept alive