Merge "tests: add unit tests for granule library" into integration