Unittests for adprep