GetBool, GetInt and GetInt64 with tests