Bootstrap and Application testing functions (double loading fix)
Fixed wrong rewrite rules.