Add tests to verify isFloating functionality