Do not forget to save the file and make sure it's updated on the test server. Once you did that, go to the Permalinks manager inside wp-admin panel and hit "Save Changes" once to update the permalink settings.