make functional test envs new-style classes

Change-Id: Ic952d49c99f2c32da4afc60ecea715c245e03047
different behavior in GET vs PUT/POST; also, more tests

Change-Id: Id6ecfa232511c3fcb49ec44cb14cd9025d6217c6