adding tests to verify the documentation examples