added misctests package and modified some files