add test script
rename test method
log the object if running in test env