expose namespace methods, add tests