replace fixtures with factory_girl

also fixed the test env so rake test works