pushed all spec code into spec_helper