* minor code update.
* updated test in card manager.