[#1180] Add tests