added sptest after hook to help in service apps