enhance unit test such that it capturing broken SOFTWARE_LIBDIR