add more partial expression tests and fix exposed bugs