update tests and fix related code for sequencing 3-condition studies