fixed source tests errors