Adding test

This commit adds the test that checks the file generated.