add some test to setting controller