Add integration test. Add unit test for flag narrative, change password and add admin