replaced useless setter for tests with a test using reflection