added unit tests
added converter