update test code
add coveralls badge