Remove trailing whitespace
test: add test for setting linktype