adding test for main script

fixes #9