added unit tests. The tested programs are not included. Link will be
added on github.