Started work on unit tests.

Added rakefile, a directory binding for testing and started work on unit
tests.