Replace deprecated version of Assert