Added unit tests for files