move stub test to common; allow mknod to use octal mode