rewrite the commented out test with new API