created object builder class and made test cases