rework to use spec for testing