Unit test basic function