UPDATE: Added a few more tests to push the edge cases of bean instantiation