test using position class passed