Added options for a common test library
Modified test.c to use the library
Created example files that will contain (in some future) common procedures for testing