added a fixed random seed for ajd unit tests, and some code style changes