Added test files of all three kinds in testfiles/
Fixed some small bugs in all classes