Shouldn't that be the other way around? If it doesn't work out, charge the 2 weeks, if it does, you get a job?
Those 2 weeks should determine whether it works out on other levels (e.g. are both parties comfortable with working each other) and if you do work in that time, you better charge for it.