Fixed tests compilation.
Use core/lightweight_test.hpp.