Add rake dependency for testing, Fix synchronous ajax calls