Moved sudo_working var resolution inside setcode do
Updated mocha requires
Fixed first pe_console_database_size fact test

I was supplying the mock with bad data.