Fixing variable assignment test into users dashboard
Cleaning up files based on rails best practices