add bip writer test case