added tests to ConvertToBucketFrom
fixed bugs exposed by these new tests