Prettier loggin and testing