add test resource and code file
update for SWFBits test, partly