added useful error messages to test and changed name