added permission and user integration tests