changed check using bit wise operators
modified ant script to run unit tests