Added unit tests for container toggling