fixed #constructor and add unit test