added factories

added factories and added some more specs