added more test cases to BitmapTools and BitmapExtension
fixed issues in BitmapTools and BitmapExtensions