only capture ValueError while parsing JSON; include message describing failure; add test;
use newer exception syntax
install testing requirements when building docs with tox