Basic tests

Including basic tests described on my comment in #5.
Once #8 will be in, we should improve a bit PlugBasicTest
Can we turn this into a unit test?