Fixed some bugs in Rspecs