Make sure we throw an exception if we use an invalid argument as a module