fixed a little compilation and test issue