fixed #14, remove test code