Added class testing script

Added a script to test main functions of the class and to enable users
to easily identify the source of errors.