Implement tests for Effects.list and fix some bugs