Add initial tests for hal adapter