Fixed arguments for delete session and added test