Tests infrastructure

relates to #48 and #46