Task/add unit tests

#### Reviewers
@jframos @flopezag

#### Description
ADD unit tests

#### Test
tested locally 
We need not only the attributes but also the tiers to resolve the macros