Low-level API module and basic tests