added some tests for source