Added unit tests to simpledb.