fix bug: DEFAULT_MODE was loding as string
added test suite

python setup.py test
moved from v0.2.3 to v0.2.4