added compat module
Added  client unit test
Imporved the paser and testcase