fixed #7
initial implement of test