Fixed tests and access denied error