Fix publish updating (switching) for empty -> empty scenario. #66
Add unit-test. #66
Add unit-test. #65