use BOOST_CHECK_THROW for testing exception
re-indent