adding test and test code.

TNL-900