More descriptive test messages
Add check for client reference length