BUG: Check for 0 variance not unit. Closes #1025.
TST: Add regression test for #1025.
Merge pull request #1027 from jseabold/maintenance/0.5.x

BUG: Check for 0 variance not unit. Closes #1025.