Added unit test for autoleave-plugin
Fixed log being null