Update cat file, added some test code