More complex unit tests