test functions
add ls test and preptest