test and refactor 'change type'