added .last tests and preliminary implementation