Moving URL tests to outer test package.
Updated to content_type instead of deprecated mimetype.