Unit tests for FreeNAS API