[#3200] Added unit tests