Add EQC tests for ps and head. Fix bugs found for those.