fixed overlay bug and added test to verify
Merge pull request #97 from twobraids/overlay-bug

fixed overlay bug and added test to verify