add a test to check before getting object