Fix test assertion calls on Travis