Fixed silently failing tests (yikes), refactored to support sync pipelines