Update gearman tests and application structure