Started debugging; added simple test case.