test functions working, except match_length()