updated to latest apx and released apx roles, changed test to use legacy middleware