add test_direct and test_enc to tests