add unit test using WeldContainer. fixed a platform specific problem