test function similar to other test