update code style and add test