Fixing #345 and refeactoring Editor tests not to use reflection API.