added tests and factory girl