added test for setUp*, tearDown* and fixed respective functions