add unit tests for SWF start()