Minor corrections and testing file.

- some minor corrections.
- added a testing file.