added source tests but old version. NEEDS UPGRADE