added tests
updated to _initState and updated the objectify method