Add more unit tests and functions for list images