Port some tests from python version: https://github.com/epicf/ef_python/issues/23
Port some tests from python version: epicf/ef_python#23