added negative tests and checks