Added simpletest lib and test cases