Some REST tests and sudo code added