fixing the nil return values and spec subjects