tests for setting container attribute