Implement loading script and some tests