Fixed more tests around the API end points for application and stat.