Adding unit tests

Added https://github.com/lightblue-platform/lightblue-rdbms/issues/83 for this, not going to hold up the PR for this.