Added more test code.
Chmod changes