Fix Authentication and ActivityStream test cases