Add test for BadArguments exception