port client-test fixes into install-test

- the pkgrm logic is no longer really necessary, client-test
  makes sure that a pkgrm works and will fail the build if it doesn't
- also some style fixes