fix wrong specs in boolean type test
improved the readability of the test
add close and commmit method at exit program
improve all test