Fix test error
Refactor mongoid.yml and _footer.haml