added test for Krimdomu/Rex#324
merged