Replace login_required with authentication_required
New function: check_get_requires_authentication
New function: check_delete_requires_authentication
Add market API tests