move unit testing code in own directory