added and improved tests on the basic classes