Fix format string
add coverage for more top level api functions