added check if source is written to statepoint file that the statepoint will exist
added new tests for sourcepoint