fixed test issues with expectedClientID and added fail tests for registration with correct id