added spec files and factories