Complete refact tests. Fix trailing slash.