Avoid deprecated test assertions