The tests associated with this function should be added once the PR#187 and PR#146 and PR251 are merged.