added some more tests; fixed some bugs and made sure the E_NOTICES will not occur.