What is the relationship between the Container name and the JNDI name of the beans in that Container?

There is no relationship. The server name, "test" or “ejbcontainer”, shouldn't have anything to do with clients from a user's viewpoint. Clients locate a bean by using the bean's JNDI name. They need not know anything about "test". The Container name is used by the admin utilities to determine which server to stop.