added tests and factory girl
Merge pull request #1 from vmitchell/tests

added tests and factory girl