updated tests and importing namespace
updated example