Your last photo looks like it could be a floor drain with float valve so water won't back up into the basement. The clean outs can be tested with flush of a toilet, with the lid off you will hear it. The other one will be a clean out for the floor drain, I'm guessing!