Fix edge cases for get_concrete_base_model

Also add a test for it.
Utilities methods to check for obj state
Add some trivial test cases