Adam tests

added unit tests