Add pyobjects tests