Fix bundlesequence in tests and moved permissions_ tests out of staging