added scoretest function