Added unit test for lattice

Signed-off-by: Arif <arif@bansberrysg.com>