Fix retrieval of trial observations in workbookbuilder

BMS-80

Reviewer: Crisjaira Villarino
Create unit test for adding of new environment to an existing trial

BMS-80

Reviewer: Crisjaira Villarino