Added Casper queries.. Added test cases.