test with dict