Fixed tests and improved error message in failed actor message functions