o. Fix a minor bug
o. Add a simple testing script to make sure no fundamental bug taking place.