bug fix for test

write Library
support export