fix error when running --test
version 0.13.1