Fix some warnings in specs