Tests for REST