add test code and readme