Add some tests to ensure api stability