First version of working REST tests