added test for Krimdomu/Rex#318