Fixed deprecated test