Fix Authentication and ActivityStream test cases

Fix Authentication and ActivityStream test cases