fix test, using int now for API (this should change)