Added tests

resolved numerous issues calling methods.