Constructor tests and a fix.