added unit tests
obsolete