Added parameters to effects and components

Also contains a needed refactoring in tests.