Tests: Added test for ticket 12398.
Fixed wrong selectors in maximize plugin.