The first question that comes to mind is "Was the company upfront about the trial period being unpaid?"
Next, it sounds like there's more to the story as that's a very odd business arrangement. It's almost always the case where a contract is in the best interests of the company, so you might need to elaborate on the details.