Updated digital-commonwealth endpoint; Added error msg output to test