Fixed Bug with HubName regex and added additional tests.