Fix warnings in specs