fixed issue #1 and added in test page