Add tests for imbue and getloc.
Add test for return values of flags and setf.
removed redundant stuff
additional return value test for setf