Fixed rake tests to work with new preferences model.
Fix javascript tests from breaking due to the maskStatus function.
Move the maskDate function call into the view since it does not work properly in the template.