add test for metered decorator