write test for ::build