Change Mongo reference to ActiveRecord reference
Include fix for #378
Have users fixture store the actual hash that is expected
Add more integration tests and refactor