Removed rspec deprecation warnings.
Extracted urltesting method from model to its own class. Created a validator for it.