An applicant plausibly alleged that a test meant to gauge his “workstyle” fit the definition of a lie detector test under Massachusetts law, the judge determined.