[#2102] add tests