tests cleaned up and statusCode call inplemented