added test for krimdomu/Rex#316