fixed some bug, added cassandra testcases