tests for the application node endpoint + a couple of fixes