Fix tests failing due to trailing whitespace