Some additional utility methods and tests