fixed test 5.1 compatibility