Test written

Test was written. I had to remove the c99 standard from Makefile to get the
library functions to work for some reason.