Why do you need this test here ? Couldnt u have it as part of "containerNameIsvalid" ?