Added unit test and base functions
Merge pull request #1 from thomas-barthelemy/develop

Added unit test and base functions