Added test for th:object with conditional