Basic tests infrastructure

According to issues #2, #14: basic tests and test infrastructure implementation.