Add more tests to cover the behavior of the activity worker