Test that 'assertDeprecated' fails when appropriate.