fixed selection sort test