added partial test for mode setting