Fix `make check' in cmake does not generate data