test check legal double