Made make check cover more files and added a test folder.