Tests for the api and close node part