100% code coverage, added factory girl for model testing, fixed some bugs identified through the tests, closed issue #8