EAGLESIX-2695 Added the check for the number of arguments. Added rudimentary tests.