added unit tests and A-tests