adding tests for assertEmpty and fixing bug