Modified ann base test, to work on MAC and UBUNTU