added test. found bug. squashed bug.