changed unit test to work with pre 5.4