added tests for all the procdures