fixed tests, added tests for consent and study consent. Need to finish fixing tests for study consent.