extends() for prototype; fixed broken test