fixed a deprecated msg in test