Added tests and functions for searching based on time and a combination of location and time