more API utils
basic tests