Split test( ) and main( )

## v0.1.0109
## for Issue #1