more tests, fixed system/package/compilation annoyances