test classes that use std functions via a ns trick