[1.5.x] Updated deprecated test assertions