added rspec model test case for medialink model, improved media link model url autocorrection and validation