fix always false condition

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
improve test cases

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
minor grammar changes

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
added reset method;Add test files

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>