misc fixes to testing first/nth/last