Fix .jsx loader and fix tests