Complete test for application/ endpoint

Just complete writing test for the application/ endpoint of the application. Found some strange behaviours i think are bugs