fix get_numpartrelease(), add test for it