unit tests

Signed-off-by: Adrian-Tudor Panescu <adrian@panescu.com>