Added loading status to index post request and considerably increased test coverage