Api that is close to final, first basic tests
More tests