test_lib: added missing test for environment attribute merging