added all files in lib/
fixed tests