refs #13 add test code but pending.