a test of two implementations