updated to version 1.0.2: better tests