a minor fix.
refactored tests.
added "clean" option for build.