first functional test, this and previous commits close #1