slapos_pdm: Include tests and general fixes for Upgrade Decision