Unit tests for any, all, first and last functions