Small tests, file extension validator, bug fixes