added change api to spmanager; updated with some tests