Add tests for folder - Fixes #122