Removed setters that were only used in tests, added Testhelper mathod to set fields via reflection and changed the tests to use the new method