repair changes to testAsset to prevent breakage of other tests. Moved to setExpectedException instead of annotation