[#1109] Implement tests