fixed a compile bug in tests