Fix bug related to "create keyspace". Improve UT.
Some npm related changes.