tighten test to work at compile time