added tests, two returning error/failures