Fix cmake file and object test