moved some test components out of main library
small fixes and comment out bad test cases