updated ibeta test
changing tests for ibeta; checks that it throws
adding tests for ibeta
adding error checking to ibeta; added additional documentation to C++ function